<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomContentListDetailInput.ascx.cs" Inherits="admin_webparts_Plug_ins_CommonPage_CustomContentListDetailInput" %>

<%@ Import Namespace="NTTHAO.Web.BL.CommonPage" %>
<%@ Import Namespace="NTTHAO.Common.BL" %>
<%@ Import Namespace="NTTHAO.CommonWeb" %>


<%if (this._CustomList != null)
  { %>
<div class="tip">
	<h1><%=LanguageUtility.GetLanguageText("ADD_CONTENT", Session)%></h1>
    <div style="display: block; width: 32px; height: 32px; float: right; position: relative; top: -27px;"><a title="<%=LanguageUtility.GetLanguageText("CLICK_RETURN", Session) %>" href="?type=<%=Request.QueryString["type"] %>&name=<%=Request.QueryString["name"] %>&action=viewlist&listid=<%=this._CustomList.ID %>"><img src="resources/images/Back.png" alt="" /></a></div>
</div>
<table cellspacing="0" cellpadding="3" border="1" class="grid" style="margin: 10px auto;">
    <tr class="even">
        <td align="right" width="200px">
            <%=LanguageUtility.GetLanguageText("NAME", Session)%>:
        </td>
        <td><b><%=this._CustomList.Name%></b>
        </td>
    </tr>
    <tr class="odd">
        <td align="right" width="200px">
            <%=LanguageUtility.GetLanguageText("CONTENT_LIMIT", Session)%>:
        </td>
        <td><%=this._CustomList.Limit%></td>
    </tr>
</table>
<div class="tip">
	<h2 style="padding-top: 0px;"><%=LanguageUtility.GetLanguageText("CLICK_ON_HEADER_TO_ADD", Session)%></h2>
</div>
<table border="1" cellpadding="0" cellspacing="0" class="grid" id="tbGrid">
    <tr>
        <th width="42px">#</th>
        <th><%=LanguageUtility.GetLanguageText("NAME", Session)%></th>
        <th><%=LanguageUtility.GetLanguageText("LAST_UPDATE", Session)%></th>
    </tr>
<%if (this._List != null) for (int i = 0; i < this._List.Rows.Count; i++)
{
  System.Data.DataRow row = this._List.Rows[i]; %>
    <tr class="<%=(i%2==1?"even":"odd") %>">
        <td align="center"><%=i + 1 %></td>
        <td align="left"><a href="?<%=Request.ServerVariables["QUERY_STRING"] %>&albumid=<%=row[CommonPageContent.ID__COLUMN_NAME] %>"><b><%=row[CommonPageContent.HEADER__COLUMN_NAME] %></b></a></td>
        <td align="center"><%=((DateTime)row[CommonPageContent.LASTUPDATEDATE__COLUMN_NAME]).ToString("yyyy/MM/dd HH:mm") %></td>
    </tr>
<%} %>
</table>
<%} %>